package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;

public interface ReportService {
    /*
     * 统计指定区间时间内的营业额
     * */
    TurnoverReportVO getTurnoverReport(LocalDate beginTime, LocalDate endTime);

    /*
     * 统计总客户以及新增客户
     * */
    UserReportVO statistics(LocalDate begin, LocalDate end);

    /*
    * 订单各项数据统计
    * */
    OrderReportVO orderStatistics(LocalDate begin, LocalDate end);

    /*
    * 销量前十
    * */
    SalesTop10ReportVO getTop10(LocalDate begin, LocalDate end);

    /*
    * 下载数据到EXCEL文件中
    * */
    void exportBusinessDate(HttpServletResponse httpServletResponse) throws IOException;
}
